package com.trade.module.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Class Description:组织机构实体类
 *
 * @Version v1.0 2017/4/21 20:24
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "base_department")
public class Department extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 4540949341403311956L;

    /**
     * Field description：组织名称
     */
    @Column(
            name = "dept_name",
            nullable = false,
            length = 32

    )
    private String deptName;
    /**
     * Field description：组织级别
     */
    @Column(
            name = "dept_level",
            nullable = false,
            length = 2
    )
    private String deptLevel;

    /**
     * Field description：上级组织ID
     */
    @Column(
            name = "parent_dept_id",
            nullable = false,
            length = 64

    )
    private String parentDeptId;

    /**
     * Field description：组织编号
     */
    @Column(
            name = "element_code",
            nullable = false,
            length = 64
    )
    private String elementCode;

    /**
     * Field String argFlag:组织状态
     */
    @Column(
            name = "dept_flag",
            nullable = false,
            length = 5
    )
    private  String deptFlag;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptLevel() {
        return deptLevel;
    }

    public void setDeptLevel(String deptLevel) {
        this.deptLevel = deptLevel;
    }

    public String getParentDeptId() {
        return parentDeptId;
    }

    public void setParentDeptId(String parentDeptId) {
        this.parentDeptId = parentDeptId;
    }

    public String getElementCode() {
        return elementCode;
    }

    public void setElementCode(String elementCode) {
        this.elementCode = elementCode;
    }

    public String getDeptFlag() {
        return deptFlag;
    }

    public void setDeptFlag(String deptFlag) {
        this.deptFlag = deptFlag;
    }
}
